Search Results

Search: Posts Made By: sumang24
1,501
Posted By sumang24
Your script worked flawlessly. I was able to get...
Your script worked flawlessly. I was able to get the difference in 1 shot.

Thanks

---------- Post updated at 09:05 PM ---------- Previous update was at 09:04 PM ----------



Thanks for...
1,501
Posted By sumang24
I am on Bash. I am not a unix expert, can...
I am on Bash.

I am not a unix expert, can you please give me the code to print the final result with difference in both the list files assuming the first file name is all-xml-file-list.lst and...
1,501
Posted By sumang24
Compare Only "File Names" in 2 Files with file lists having different directory structure
I have a tar arcive
arch_all.tar.gz

and 4 batched tar archive . These batches are supposed to have all the files form arch1.all.tar.gz

arch1_batch1.tar.gz
arch1_batch2.tar.gz...
5,692
Posted By sumang24
I used this command to see the contents: tar...
I used this command to see the contents:

tar -ztvf export.tar.gz > /tmp/list_tar_ztvf.out
5,692
Posted By sumang24
The above command still gave me single files. ...
The above command still gave me single files.
The output looks like:
-rw-r--r-- user/user 33935 2015-12-05 13:41 ./File1.xml
-rw-r--r-- user/user 67306 2015-12-04 20:43 ./File2.xml
-rw-r--r--...
5,692
Posted By sumang24
From: /dir/dir1 $ tar cpzf export.tar.gz...
From: /dir/dir1

$ tar cpzf export.tar.gz /dir/dir1/dir2
tar: Removing leading `/' from member names

Is that OK that it is removing leading `/' from member names?
5,692
Posted By sumang24
OK: I have kicked off the command suggested by...
OK: I have kicked off the command suggested by you again

$ find . ! -name export.tar.gz ! -name . | tar -cpzf export.tar.gz --files-from -

Thanks!
5,692
Posted By sumang24
Yes I did remove the export.tar.gz created by the...
Yes I did remove the export.tar.gz created by the first run

---------- Post updated at 12:41 AM ---------- Previous update was at 12:37 AM ----------

I also tried the pipe command to exclude...
5,692
Posted By sumang24
I spoke too soon I am not sure if I did...
I spoke too soon

I am not sure if I did something wrong, I see 2 files with the same name in the tar file created in the uppper level of subdirectory.
5,692
Posted By sumang24
Thanks This worked!!
Thanks This worked!!
5,692
Posted By sumang24
Tar command fails
I am on Oracle Linux:

tar -cpzf export.tar.gz /dir/dir1/dir2/*

bash: /bin/tar: Argument list too long

I tried the workaround

from the folder /dir/dir1/dir2:

find . -name '*' -print |...
2,545
Posted By sumang24
No space on any other filesystem on this host to...
No space on any other filesystem on this host to hold the tarfile.

Thanks
2,545
Posted By sumang24
Tar Command Help
Is it possible to untar a file so it's size reduces while it uncompresses its contents. I have limited space on my mount point and was wondering if we can untar as a stream in other words the size...
2,448
Posted By sumang24
Thanks : only this command worked. chmod...
Thanks : only this command worked.

chmod ugo-s oracle
2,448
Posted By sumang24
File Permission question
Experts: i want to change this permission back to the way it was:

Initial:
drwxr-xr-x 8 oracle oinstall 4096 Jun 5 15:21 oracle

Now: drwxr-xr-x 8 oracle oinstall 4096 Jun 5 15:21 oracle
...
3,473
Posted By sumang24
Works! Thanks ---------- Post updated...
Works!

Thanks

---------- Post updated at 12:35 PM ---------- Previous update was at 12:34 PM ----------



Thanks Bipinajith works!
3,473
Posted By sumang24
Works like a charm. Thanks ----------...
Works like a charm.

Thanks

---------- Post updated at 12:27 PM ---------- Previous update was at 12:06 PM ----------



Sorry to bother you again. I need to check 2 conditions to be true...
3,473
Posted By sumang24
Bipinajith: Thanks for your response. Is there a...
Bipinajith: Thanks for your response. Is there a way to supress this message if the file foes not exist?


ls: /tmp/file_checker/testing*.txt: No such file or directory


Basically I want to...
3,473
Posted By sumang24
File check script fails for multiple files
I want to check if any file with testing*.txt exists but my script fails if more than 1 file exists. It works fine for a single file


if [ -s /tmp/file_checker/testing*.txt ]
then
echo "TEST21"...
4,198
Posted By sumang24
You are correct , I just need file name without...
You are correct , I just need file name without the .txt extension Your solution worked.

I need this to create a batch job that figures out the latest *.txt file name on the server in a specific...
4,198
Posted By sumang24
Get latest filename without extension
I need to write a shell script to display the output of ls command like this

ls -ltr *txt

I get this

-rw-r----- 1 oracle dba 51912704 Dec 11 10:27 /usr/local/sam/test12112012101247AM.txt...
Showing results 1 to 21 of 21

 
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy