Messages - Killeroid [ switch to compact view ]

Pages: [1] 2next
1
All the files were encoded wrongly before transit and when i got them, all of them had 18 bytes of junk prepended to each file.

2
Alright, I finally found a fix using bash and dd on linux.

Code: Text [Select]
  1. #!/bin/bash
  2. #Reads all files ending in specified extension in folder, deletes first X bytes and then saves the modified file as prefix.oldname
  3. X=18                 #Number of bytes to delete from file
  4. EXT=jpg             #File extension of files being modified
  5. PREFIX=new       #The prefix prepended to the filename to after moifying the file
  6.  
  7. for file in $(echo *.$EXT); do dd ibs=$X skip=1 if=${file} of=$PREFIX.${file}; done

3
I have a folder full of binary files. The first 18 bytes of each file needs to be deleted. Maybe someone can help? Thanks in advance

4
Post New Requests Here / Re: IDEA: Simple php directory
« on: January 07, 2008, 10:59 AM »
phpFormGenerator will work for the accepting of data from users and storing it in a mysql database.. I dont know about phpmyadmin (basically, i ust want a script that will access the mysql database and print out and display the list of users and the sip adresses that i collected using the form and stored in the database.). It would be a great bonus if users could also seach through the database and find users by their usernames or voip numbers.
Basically, a phone directory script that lists the names and sip adresses of users and if easily done, also contains a search function so that you can search usng either fields.

5
Post New Requests Here / Re: IDEA: Simple php directory
« on: January 07, 2008, 10:37 AM »
It needs to be somthing that i can host.

Pages: [1] 2next
Go to full version